-- GENERATED SPELL FOR [Whitewhisker Overseer] --


function spell0_11605(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11605', 575, 1)
end

function spell1_11605(pUnit, Event) --@Haste Aura,Self--
pUnit:FullCastSpellOnTarget(13589,pUnit)
pUnit:RegisterEvent('Sorts_11605', 635, 1)
end

function Sorts_11605(pUnit, Event)
local choix_sorts_11605 = math.random(0, 1)
if choix_sorts_11605 == 0 then
pUnit:RegisterEvent('spell0_11605', 1, 1)
end
if choix_sorts_11605 == 1 then
pUnit:RegisterEvent('spell1_11605', 1, 1)
end
end

function mob11605_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11605', math.random(1500, 3000), 1)
end

function mob11605_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11605_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11605_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11605, 1, 'mob11605_Action')
RegisterUnitEvent(11605, 2, 'mob11605_Leave')
RegisterUnitEvent(11605, 3, 'mob11605_Kill')
RegisterUnitEvent(11605, 4, 'mob11605_Die')
